﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SampleShop
{
    public interface IProduct
    {
        /// <summary>
        /// 商品的ID
        /// </summary>
        long Id { get; set; }
        /// <summary>
        /// 商品的名称
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 商品的价格
        /// </summary>
        decimal Price { get; set; }

        /// <summary>
        /// 原来的价格
        /// </summary>
        public decimal LowerPrice { get; set; }

        /// <summary>
        /// 价格下降事件
        /// </summary>
        event Action<IProduct> PriceChangeLow;
    }
}
